package com.you.pattern.sigleton.hungry;

public class HungrySingletonDemo1 {

    private static HungrySingletonDemo1 hungrySingleton = new HungrySingletonDemo1();

    private HungrySingletonDemo1() {
    }

    public static HungrySingletonDemo1 getInstance() {
        return hungrySingleton;
    }

    public static void main(String[] args) {
        System.out.println(HungrySingletonDemo1.getInstance());
    }
}
